package com.ibangnuo.api.commercial;

import com.ibangnuo.framework.domain.CommercialMigration;
import com.ibangnuo.framework.domain.request.commercial.CommercialMigrationRequest;
import com.ibangnuo.framework.model.response.ObjectResult;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2020-03-11 9:37
 */
@Api(value="商户迁移",description = "商户迁移接口管理")
public interface CommercialMigrationControllerApi {

    @ApiOperation("迁移")
    ObjectResult migrate(CommercialMigration commercialMigration);

    @ApiOperation("分页条件查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "条数",required=true,paramType="path",dataType="int"),
    })
    QueryResponseResult findList(int page, int size, CommercialMigrationRequest commercialMigrationRequest);

    @ApiOperation("批量迁移")
    ObjectResult migrateList(List<CommercialMigration> commercialMigrationList);
}
